import java.util.Scanner;

public class Java017 {
    public static void main(String[] args) {
        int i,day,num=0;
        Scanner sc=new Scanner(System.in);
        System.out.println("How many days are left with one");
        day=sc.nextInt();
        for(i=0;i<day;i++){
            num=(num+1)*2;
        }
        System.out.println(num);
    }
}
